def str_reverse(s):
    num = s[::-1]
    return num

def substr(s,x,y):
    return s[x:y]
# if __name__ == '__main__':
#     print(str_reverse("heima"))
#     print(substr("黑马程序员",2,4))